<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: jz
 * Date: 2016/8/24
 * Time: 20:55
 */

if (!function_exists('my_set_select'))
{
    function my_set_select($set=true)
    {
        if ($set){
            return 'selected=selected';
        }
        return '';
    }
}

if (!function_exists('my_set_select_by_value'))
{
    function my_set_select_by_value($value1, $value2)
    {
        if ($value1 == $value2){
            return 'selected=selected';
        }
        return '';
    }
}